package com.lgCore.factory;/**
 * Created by by on 2021/4/12 10:50
 */

import com.lgCore.rpc.RpcFilter;

/**
 * 过滤器工厂
 *
 * @program: sxreader_rpc
 * @author: ligang
 * @create: 2021-04-12 10:50
 */
public class FilterFactory {
    //rpc过滤器
    private static RpcFilter rpcFilter;

    static {
        registerProtocol(new RpcFilter());
    }

    private static void registerProtocol(RpcFilter irpcFilter) {
        rpcFilter = irpcFilter;
    }

    public static RpcFilter getRpcFilter() {
        return rpcFilter;
    }
}
